﻿Public Class FavouritesTabs

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        AddToFavTabs.Show()
        Me.Close()
    End Sub

    Private Sub FavouritesTabs_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
        BrowserWithoutTabs.LoadFavourites()
    End Sub

    Private Sub FavouritesTabs_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Try
            WebBrowser1.Navigate("C:\BBrowser Organise Favourites.html")
        Catch ex As Exception
            MsgBox("Error loading this form. Reinstalling BBrowser may help.", MsgBoxStyle.Critical, "Error")
            Me.Close()
        End Try
    End Sub
End Class